package com.toommi.refuse.mapper;

import com.toommi.refuse.entity.Notice;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @ClassName: NoticeMapper
 * @Description: TODO
 * @Auther: HuangBo
 * @Date: 2019/9/20 0020 18:08
 */
@Repository
public interface NoticeMapper {

    void updateNoticeById(Notice notice);

    Notice findOneById(String id);

    List<Map<String,Object>> findAll(@Param(value = "page") Integer page);

    void addNotice(Notice notice);

    void deleteNoticeById(String id);

    void updatestatusByPageAndId(Long id,Integer page);

    String getContentByPage(Integer page);
}
